package com.prd.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lizhaoyi
 * @since 2024-01-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_static_menu")
@ApiModel(value="SysStaticMenuDO对象", description="")
public class SysStaticMenuDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "子菜单")
    private String children;

    @ApiModelProperty(value = "路径")
    private String href;

    @ApiModelProperty(value = "按钮")
    private String icon;

    @ApiModelProperty(value = "菜单id")
    private String menuId;

    @ApiModelProperty(value = "序号")
    private Integer num;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "父菜单id")
    private String parentId;

    private String rel;

    private String spread;

    @ApiModelProperty(value = "菜单名")
    @NotNull(message = "菜单名不能为空")
    private String title;

    @ApiModelProperty(value = "用户id")
    @NotNull(message = "指定用户id不能为空")
    private Long userId;

    @ApiModelProperty(value = "角色id")
    @NotNull(message = "指定角色id不能为空")
    private Long roleId;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;


}
